package com.wpp.rabbitmq.d_route;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author wpp25
 * @date 2019/11/20 9:22
 * @description：
 */
@RabbitListener(queues = "04_direct_queue_insert")
@Component
public class RouteListener01 {

    @RabbitHandler
    public void testListener(String msg) {
        System.out.println("RouteListener01 ===========> "+msg);
    }
}
